package www.wf.pro.fallback;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import www.wf.pro.feign.AdminFeign;
import www.wf.pro.model.ResultModel;
import www.wf.pro.request.AdminRequest;
import www.wf.pro.response.AdminResponse;

/**
 * @author wang fei
 * @date 2020-07-29 11:17
 */
@Component
public class AdminFallBack implements AdminFeign {

    /**
     * Admin-pc登陆
     * @return
     */
    @Override
    public ResultModel<AdminResponse> login(AdminRequest request) {
        return ResultModel.faultTolerant();
    }

    /**
     * 总后台注册以及修改
     */
    public ResultModel<Integer> register(AdminRequest request){
        return ResultModel.faultTolerant();
    }
}
